# -*- coding: utf-8 -*-
# @Time : 2018/12/25 19:06
# @Author : Administrator
# @File : driver_test_woniu.py
# @Project : python_demo
# @title :
from py41.http_test.WoniuSalesV1 import Httplib_Test
from py41.http_test.read_data import Common

class Test_Customer():
    def __init__(self):
        common = Common()
        self.data = common.read_excel("data.xls", 0)
    def test_add001(self):
        print(self.data[0]["customername"])
        customername = self.data[0]["customername"]
        childsex = self.data[0]["childsex"]
        childdate = self.data[0]["childdate"]
        creditkids = self.data[0]["creditkids"]
        creditcloth = self.data[0]["creditcloth"]
        expect = self.data[0]["expect"]
        Woniu=Httplib_Test()
        Woniu.testcustomer_add01(customername,childsex,childdate,creditkids,creditcloth,expect)
if __name__ == '__main__':
    Test_Customer().test_add001()

